﻿using Quartz;

namespace TasksManager.Jobs.Test
{
    /// <summary>
    /// [DisallowConcurrentExecution] 防止Quartz.NET尝试同时运行同一个作业
    /// </summary>
    [DisallowConcurrentExecution]
    [JobAttribute("Define2JobService", "Trigger2Job", "TestJobGroup")]
    public class DefineJobService:IBaseJob
    {
        public Task Execute(IJobExecutionContext context)
        {
            Console.WriteLine("2开始跑起来了");
            return Task.CompletedTask;
        }
    }
}
